package com.company;


public class Cat extends Animal{
    private String hobby;

    public Cat(String name, int age, String hobby) {
        super(name, age);
        this.hobby=hobby;
    }

    public String getInfo(){
        return "喵喵，大家好我是"+this.name+",年纪"+this.age+",爱好"+hobby;
    }

    public static void main(String[] args){
        Animal animal=new Cat("zds",2,"水煮鱼");
        System.out.println(animal.getInfo());

        OverLoading r=new OverLoading();
        r.max(3,5);
    }
}
